home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Web Graphics with Shout 3D
/
Interactive Web Graphics With Shout 3D.iso
/
mac
/
Shout3Ddemo
/
Shout3d_runtime
/
codebase
/
models
/
coordinateNodeInterpolatorTest
< prev
next >
Wrap
Text File
|
2000-06-30
|
6KB
|
188 lines
#VRML V2.0 utf8
#Cosmo Worlds V2.0
Viewpoint {
position -2.44069 6.36273 13.2448
orientation -0.774389 -0.62135 -0.119358 0.486304
fieldOfView 0.785398
}
DEF BOWTIE_XF Transform { translation 0 5 -1
children Shape { appearance DEF APP_1 Appearance {
material Material {
diffuseColor 0.8 0 0.8
emissiveColor 0.15 0 0.15
}
}
geometry IndexedFaceSet {
coord DEF BOWTIE_COORDS Coordinate {
point [ 0 1 1, 0 -1 1, 1 0.257106 1, 1 0 1, 1 0.257106 -1,
1 0 -1, 0 1 -1, 0 -1 -1, -1 0 -1, -1 -0.236784 -1,
-1 -0.236784 1, -1 0 1, -2 0 -1, -2 -0.236784 -1, -2 -0.236784 1,
-2 0 1, -3 1 -1, -3 -1 -1, -3 -1 1, -3 1 1,
-4 0.153767 -1, -4 0 -1, -4 0 1, -4 0.153767 1 ]
}
coordIndex [ 0, 1, 3, 2, -1, 4, 5, 7,
6, -1, 2, 3, 5, 4, -1, 6,
0, 2, 4, -1, 1, 7, 5, 3,
-1, 9, 8, 6, 7, -1, 10, 9,
7, 1, -1, 11, 10, 1, 0, -1,
8, 11, 0, 6, -1, 13, 12, 8,
9, -1, 14, 13, 9, 10, -1, 15,
14, 10, 11, -1, 12, 15, 11, 8,
-1, 17, 16, 12, 13, -1, 18, 17,
13, 14, -1, 19, 18, 14, 15, -1,
16, 19, 15, 12, -1, 20, 21, 22,
23, -1, 21, 20, 16, 17, -1, 22,
21, 17, 18, -1, 23, 22, 18, 19,
-1, 20, 23, 19, 16, -1 ]
creaseAngle 0.5
}
}
}DEF INDENT_XF Transform { translation 0 2 -1
children Shape { appearance USE APP_1
geometry IndexedFaceSet {
coord DEF INDENT_COORDS Coordinate {
point [ -0.534426 0.686256 0, -0.534426 -0.652815 0, 0.135109 0.686256 0.669535,
0.135109 -0.652815 0.669535, 0.135109 0.686256 -0.669535, 0.135109 -0.652815 -0.669535,
-0.534426 0.686256 -0.669535, -0.534426 -0.652815 -0.669535, -1.20396 0.686256 -0.669535,
-1.20396 -0.652815 -0.669535, -1.20396 -0.652815 0, -1.20396 0.686256 0,
-1.8735 0.686256 -0.669535, -1.8735 -0.652815 -0.669535, -1.8735 -0.652815 0,
-1.8735 0.686256 0, -2.54303 0.686256 -0.669535, -2.54303 -0.652815 -0.669535,
-2.54303 -0.652815 0, -2.54303 0.686256 0, -3.21257 0.686256 -0.669535,
-3.21257 -0.652815 -0.669535, -3.21257 -0.652815 0.669535, -3.21257 0.686256 0.669535 ]
}
coordIndex [ 0, 1, 3, 2, -1, 4, 5, 7,
6, -1, 2, 3, 5, 4, -1, 6,
0, 2, 4, -1, 1, 7, 5, 3,
-1, 9, 8, 6, 7, -1, 10, 9,
7, 1, -1, 11, 10, 1, 0, -1,
8, 11, 0, 6, -1, 13, 12, 8,
9, -1, 14, 13, 9, 10, -1, 15,
14, 10, 11, -1, 12, 15, 11, 8,
-1, 17, 16, 12, 13, -1, 18, 17,
13, 14, -1, 19, 18, 14, 15, -1,
16, 19, 15, 12, -1, 20, 21, 22,
23, -1, 21, 20, 16, 17, -1, 22,
21, 17, 18, -1, 23, 22, 18, 19,
-1, 20, 23, 19, 16, -1 ]
creaseAngle 0.5
}
}
}
DEF ZIGZAG_XF Transform { translation 0 -1 -1
children Shape { appearance USE APP_1
geometry IndexedFaceSet {
coord DEF ZIGZAG_COORDS Coordinate {
point [ 0 0 1, 0 -1 1, 1 1 1, 1 0 1, 1 1 -1,
1 0 -1, 0 0 -1, 0 -1 -1, -1 1 -1, -1 0 -1,
-1 0 1, -1 1 1, -2 0 -1, -2 -1 -1, -2 -1 1,
-2 0 1, -3 1 -1, -3 0 -1, -3 0 1, -3 1 1,
-4 0 -1, -4 -1 -1, -4 -1 1, -4 0 1 ]
}
coordIndex [ 0, 1, 3, 2, -1, 4, 5, 7,
6, -1, 2, 3, 5, 4, -1, 6,
0, 2, 4, -1, 1, 7, 5, 3,
-1, 9, 8, 6, 7, -1, 10, 9,
7, 1, -1, 11, 10, 1, 0, -1,
8, 11, 0, 6, -1, 13, 12, 8,
9, -1, 14, 13, 9, 10, -1, 15,
14, 10, 11, -1, 12, 15, 11, 8,
-1, 17, 16, 12, 13, -1, 18, 17,
13, 14, -1, 19, 18, 14, 15, -1,
16, 19, 15, 12, -1, 20, 21, 22,
23, -1, 21, 20, 16, 17, -1, 22,
21, 17, 18, -1, 23, 22, 18, 19,
-1, 20, 23, 19, 16, -1 ]
creaseAngle 0.5
}
}
}
DEF BLOCK_XF Transform { translation 0 -4 -1
children Shape {
appearance USE APP_1
geometry IndexedFaceSet {
coord DEF BLOCK_COORDS Coordinate {
point [ 0 1 1, 0 -1 1, 1 1 1, 1 -1 1, 1 1 -1,
1 -1 -1, 0 1 -1, 0 -1 -1, -1 1 -1, -1 -1 -1,
-1 -1 1, -1 1 1, -2 1 -1, -2 -1 -1, -2 -1 1,
-2 1 1, -3 1 -1, -3 -1 -1, -3 -1 1, -3 1 1,
-4 1 -1, -4 -1 -1, -4 -1 1, -4 1 1 ]
}
coordIndex [ 0, 1, 3, 2, -1, 4, 5, 7,
6, -1, 2, 3, 5, 4, -1, 6,
0, 2, 4, -1, 1, 7, 5, 3,
-1, 9, 8, 6, 7, -1, 10, 9,
7, 1, -1, 11, 10, 1, 0, -1,
8, 11, 0, 6, -1, 13, 12, 8,
9, -1, 14, 13, 9, 10, -1, 15,
14, 10, 11, -1, 12, 15, 11, 8,
-1, 17, 16, 12, 13, -1, 18, 17,
13, 14, -1, 19, 18, 14, 15, -1,
16, 19, 15, 12, -1, 20, 21, 22,
23, -1, 21, 20, 16, 17, -1, 22,
21, 17, 18, -1, 23, 22, 18, 19,
-1, 20, 23, 19, 16, -1 ]
creaseAngle 0.5
}
}
}
Transform { translation 6.5 1 -1
children Shape { appearance USE APP_1
geometry IndexedFaceSet {
coord DEF ANIMATED_COORDS Coordinate {
point [ 0 1 1, 0 -1 1, 1 1 1, 1 -1 1, 1 1 -1,
1 -1 -1, 0 1 -1, 0 -1 -1, -1 1 -1, -1 -1 -1,
-1 -1 1, -1 1 1, -2 1 -1, -2 -1 -1, -2 -1 1,
-2 1 1, -3 1 -1, -3 -1 -1, -3 -1 1, -3 1 1,
-4 1 -1, -4 -1 -1, -4 -1 1, -4 1 1 ]
}
coordIndex [ 0, 1, 3, 2, -1, 4, 5, 7,
6, -1, 2, 3, 5, 4, -1, 6,
0, 2, 4, -1, 1, 7, 5, 3,
-1, 9, 8, 6, 7, -1, 10, 9,
7, 1, -1, 11, 10, 1, 0, -1,
8, 11, 0, 6, -1, 13, 12, 8,
9, -1, 14, 13, 9, 10, -1, 15,
14, 10, 11, -1, 12, 15, 11, 8,
-1, 17, 16, 12, 13, -1, 18, 17,
13, 14, -1, 19, 18, 14, 15, -1,
16, 19, 15, 12, -1, 20, 21, 22,
23, -1, 21, 20, 16, 17, -1, 22,
21, 17, 18, -1, 23, 22, 18, 19,
-1, 20, 23, 19, 16, -1 ]
creaseAngle 0.5
}
}
}
DEF TIME_SENSOR TimeSensor {
cycleInterval 10
loop TRUE}DEF MY_INTERP CoordinateNodeInterpolator {
key [ 0 .07 .14 .21 .28 .35 .42 .49 .56 .63 .70 .77 .85 .92 1 ]
keyValue [ USE BLOCK_COORDS, USE BOWTIE_COORDS,
USE INDENT_COORDS,
USE ZIGZAG_COORDS,
USE BLOCK_COORDS,
USE BOWTIE_COORDS,
USE BLOCK_COORDS,
USE INDENT_COORDS,
USE BLOCK_COORDS,
USE ZIGZAG_COORDS,
USE BOWTIE_COORDS,
USE ZIGZAG_COORDS,
USE BOWTIE_COORDS,
USE BLOCK_COORDS,
USE BLOCK_COORDS ]
}
ROUTE TIME_SENSOR.fraction TO MY_INTERP.fraction
ROUTE MY_INTERP.value TO ANIMATED_COORDS.point